/* Reset básico para todos los elementos */
* {
    box-sizing: border-box;
    max-width: 100%;
}

/* Reset para elementos raíz */
html, body {
    margin: 0;
    padding: 0;
}

/* Estilos generales del body */
body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #333;
}

/* Estilos del encabezado */
header {
    background-color: #00838f;
    padding: 1rem 0;
    position: relative;
    width: 100%;
    border-radius: 0 0 20px 20px;
}

/* Contenedor principal del header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Contenedor del título y subtítulo */
.titulo-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    position: relative;
    left: -50px;
    margin-right: -50px;
}

/* Estilos del título principal */
.titulos {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: white;
    text-align: center;
    margin-bottom: 0.25rem;
}

/* Estilos del subtítulo */
.subtitulos {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 2.5rem;
    color: white;
    margin: 0;
}
.subtitulos-1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.50rem;
    color: white;
    margin: 0;
}

/* Estilos del logo */
.logo-paw {
    max-height: 100px;
    height: auto;
    width: auto;
    position: relative;
    z-index: 2;
}

/* Estilos de la barra de navegación */
nav {
    margin-top: 2%;
    background-color: #e7efe3;
    padding: 0.5rem;
    text-align: center;
}

/* Estilos para la barra de navegación */
nav {
    background-color: #98bc9f;
    padding: 0.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.1rem;
    margin-top: 10px;
    border-radius: 2opx;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    background-color: rgb(152, 188, 159);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s;
    display: inline-block;
    white-space: nowrap;
}

nav ul li a:hover {
    background-color: rgb(152, 188, 159);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sección Hero */
.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
    padding: 2rem;
    background-color: #ffffff;
    gap: 2rem;
}

.hero .content,
.hero .content--alternate {
    padding: 1.5rem;
    border-radius: 20px;
    color: white;
    max-width: 600px;
    max-height: 700px;
    flex: 1 1 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: justify;
    display: flex;
    flex-direction: column;
}
.hero .content { background-color: #4d5945; }
.hero .content--alternate { background-color: rgb(0, 140, 158); }

.hero .content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero .content p {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    font-size: 1rem;
    color: white;
    text-align: justify;
    hyphens: auto;
}

.slider, .slider1, .sl3, .sl2 {
    border-radius: 20px;
    flex: 1 1 300px;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    width: 100%;
}
.slider { background-image: url('img/img2.png'); }
.slider1 { background-image: url('img/img3.png'); }
.sl3 { background-image: url('img/img4.png'); }

.top-container {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    width: 100%;
    height: 50%;
    padding-top: 10%;
}
.top-left, .top-right {
    width: 50%;
    height: 100%;
    box-sizing: border-box;
}
.top-left {
    flex: 0 0 30%;
    padding-left: 12%;
}
.top-right {
    flex: 1;
    text-align: left;
    padding-left: 5%;
}

.bottom-container {
    width: 100%;
    height: 50%;
    box-sizing: border-box;
    padding: 5% 12%;
    text-align: left;
}

.cabecera-hor {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
    padding: 20px 0;
}
.cabecera-principal {
    width: 100%;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin: 10px;
}
.pies-1, .pies-2, .pies-3, .pies-4 {
    flex: 1;
    min-width: 200px;
    min-height: 300px;
    padding: 20px;
    border-radius: 20px;
    margin: 15px !important;
    text-align: center;
    color: #fff;
}

.pies-1 { background-color: #9d7961; }
.pies-2 { background-color: #008c9e; }
.pies-3 { background-color: #4a5136; }
.pies-4 { background-color: #98bc9f; }

/* Efecto hover con sombra */
.pies-1:hover,
.pies-2:hover,
.pies-3:hover,
.pies-4:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}
.contenedor-cajas {
    width: 100%;
    height: 150vh;
    display: grid;
    grid-template: 
        "superior-izq superior-der" 40%
        "inferior-izq inferior-der" 60%
        / 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
}

.caja {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: visible;
}

.caja-1 { grid-area: superior-izq; background-color: #ffffff; color: black; }
.caja-2 { grid-area: superior-der; background-color: #4a5136; justify-content: space-between; align-items: flex-start; }
.caja-3 { grid-area: inferior-izq; background-color: #008c9e; flex-direction: column; gap: 15px; padding: 15px; }
.caja-4 { grid-area: inferior-der; background-color: #98bc9f; flex-direction: column; gap: 15px; }

.caja-2 .contenido { width: 60%; }
.caja-2 .imagen-derecha { width: 35%; height: auto; align-self: center; }

.imagen-derecha img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.caja-interna {
    height: 70px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 15px;
    height: 20%;
    color: #fff;
}
.caja-interna-1 {
    height: 70px;
    align-items: center;
    border-radius: 8px;
    padding: 0 15px;
    height: 20%;
    color: #fff;
    margin-top: 5%;
    width: 100%;
    text-align: left;
}

.caja-titulo {
    justify-content: center;
    text-align: center;
    font-weight: bold;
}

.caja-con-imagen {
    width: 100%;
    display: flex;
    align-items: center;
}

.caja-imagen {
    width: 100px;
    height: 100px;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.caja-imagen img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.caja-texto {
    flex: 1;
    padding-right: 10px;
}
.caja-texto1 {
    flex: 1;
    padding-right: 10px;
    height: 100%;
    width: 50%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
    box-sizing: border-box;
}

/* Botón */
.btn {
    width: 5%;
    display: inline-block;
    margin-top: 1rem;
    background-color: #98bc9f;
    color: white;
    padding: 1rem 2rem 1rem 1rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-left: 98%;
    text-align: right;
}
.btn:hover {
    background-color: #7c9982;
}

.services {
    text-align: center;
    padding: 2rem;
    background-color: white;
}
.service-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}
.service-card {
    background-color: rgb(152, 188, 159);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    padding: 0.3rem 0.5rem;
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    display: inline-block;
    text-align: center;
    width: 100%;
    height: 35%;
}
.card-title {
    margin-top: 10%;
    background-color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: bold;
    color: #000000;
    padding: 0.5rem 2rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    display: inline-block;
    text-align: center;
    width: 100%;
    height: 50;
}

.main-content1 {
    width: 100%;
    min-height: 100vh;
    padding: 20px 2.5%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.contenedor-grande {
    width: 95%;
    min-height: 50vh;
    margin: 20px auto;
    border-radius: 20px;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}
.contenedor-1 {
    background: url('img/cover1.png') center/cover no-repeat;
    color: white;
    display: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
}
.contenedor-2 {
    min-height: 70vh;
    background: linear-gradient(to right, #4a5136 0%, #353a28 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* MEDIA QUERIES RESPONSIVE */
@media (max-width: 1024px) {
    .contenedor-cajas {
        display: flex;
        flex-direction: column;
        height: auto;
    }
    .caja {
        flex: 1 1 auto;
        width: 100%;
        padding: 10px;
    }
}
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    header {
        padding: 1rem 0;
    }
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        padding: 0;
    }
    .titulo-texto {
        left: 0;
        margin-right: 0;
        width: 100%;
        order: 1;
        padding: 0 1rem;
    }
    .logo-paw {
        order: 2;
        max-height: 40px;
        margin: 0.5rem 0 0 0;
    }
    nav ul {
        flex-direction: column;
        gap: 0.3rem;
    }
    nav ul li {
        width: 100%;
    }
    nav ul li a {
        display: block;
        padding: 0.8rem;
    }
    .top-container {
        flex-direction: column;
        padding-top: 5%;
    }
    .top-left, .top-right {
        width: 100%;
        padding-left: 0;
    }
    .cabecera-hor {
        flex-direction: column;
        align-items: center;
    }
    .pies-1, .pies-2, .pies-3, .pies-4 {
        min-width: 100%;
        margin: 10px 0 !important;
    }
    .main-content1 {
        padding: 10px;
    }
    .contenedor-grande {
        width: 100%;
        padding: 15px;
    }
}
