/* Estilos generales */
:root {
    --primary-color: #df58c8;
    --secondary-color: #ff8ad5;
    --accent-color: #ffb6e6;
    --text-color: #333;
    --light-color: #fff5fc;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(223, 88, 200, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    position: relative;
    color: white;
    overflow: hidden;
    height: 650px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a64c9f 100%);
    display: flex;
    align-items: center;
}

.header-image-container {
    position: relative;
    width: 50%;
    height: 100%;
    z-index: 1;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: float 8s ease-in-out infinite;
}

.bubble-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 80px;
    height: 80px;
    top: 25%;
    right: 15%;
    animation-delay: 2s;
}

.bubble-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 25%;
    animation-delay: 4s;
}

.paw {
    position: absolute;
    color: rgba(255, 255, 255, 0.2);
    font-size: 40px;
    transform: rotate(30deg);
    animation: float 10s ease-in-out infinite;
}

.paw-1 {
    top: 30%;
    left: 25%;
    font-size: 50px;
    animation-delay: 1s;
}

.paw-2 {
    top: 60%;
    left: 15%;
    font-size: 35px;
    animation-delay: 3s;
}

.paw-3 {
    top: 40%;
    right: 10%;
    font-size: 45px;
    animation-delay: 5s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.header-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    width: 50%;
    animation: fadeInUp 1s ease-out;
    text-align: left;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: 800;
    letter-spacing: 1px;
}

.main-header p {
    font-size: 1.6rem;
    margin-bottom: 35px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.highlight {
    color: #ffea00;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    padding: 14px 30px;
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    font-size: 1.1rem;
    border: 2px solid white;
}

.btn-primary:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Navegación */
.main-nav {
    background-color: white;
    box-shadow: 0 2px 15px rgba(223, 88, 200, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
}

.nav-list li {
    margin: 0 15px;
}

.nav-list a {
    display: block;
    padding: 20px 10px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-list a i {
    margin-right: 5px;
    font-size: 0.9em;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list a:hover::after {
    width: 100%;
}

/* Secciones */
.section {
    padding: 60px 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--light-color);
}

.section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.text-content p, .text-content ul {
    margin-bottom: 15px;
}

.text-content ul {
    padding-left: 20px;
}

.text-content li {
    margin-bottom: 8px;
}

.image-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.section-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Formulario calculadora */
.form-container {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.results-container {
    flex: 1;
    min-width: 300px;
    display: none; /* Se mostrará con JavaScript cuando haya resultados */
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(223, 88, 200, 0.2);
}

.btn-calcular, .btn-enviar {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: var(--box-shadow);
}

.btn-calcular:hover, .btn-enviar:hover {
    background-color: #c84eb4;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(223, 88, 200, 0.3);
}

/* Resultados */
.result-data {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.tamano-mascota {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.result-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-top: 20px;
}

.result-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.result-box {
    flex: 1;
    min-width: 200px;
    background-color: var(--light-color);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
}

.result-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.result-image {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.result-img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
}

/* Beneficios */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.beneficio-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary-color);
}

.beneficio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(223, 88, 200, 0.2);
}

.beneficio-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    background-color: var(--light-color);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

.beneficio-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Contacto */
.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 5px solid var(--primary-color);
}

/* Galería Slider */
.gallery-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-color);
}

.slide-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.slider-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background-color: #c84eb4;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .main-header {
        height: 500px;
        flex-direction: column;
    }
    
    .header-image-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        opacity: 0.5; /* Reducido de 0.85 a 0.7 para mejorar la legibilidad del texto */
    }
    
    .header-content {
        padding-top: 100px;
        width: 100%;
        text-align: center;
    }
    
    .main-header h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
        padding-top: 150px;
    }
    
    .main-header p {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    .nav-list li {
        margin: 0 10px;
    }
    
    .nav-list a {
        padding: 15px 8px;
        font-size: 0.9rem;
    }
    
    .slide {
        height: 300px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .content-wrapper {
        gap: 30px;
        margin-top: 25px;
    }
    
    .beneficios-grid {
        gap: 20px;
        margin-top: 25px;
    }
    
    .gallery-intro, .contact-intro {
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .main-header {
        height: 450px;
    }
    
    .header-content {
        padding-top: 30px;
    }
    
    .main-header h1 {
        font-size: 1.8rem;
    }
    
    .main-header p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .section h2::after {
        width: 60px;
    }
    
    .content-wrapper {
        gap: 20px;
        margin-top: 20px;
    }
    
    .beneficios-grid {
        gap: 15px;
        margin-top: 20px;
    }
    
    .gallery-intro, .contact-intro {
        margin-bottom: 20px;
    }
}
