/* Reset y estilos base */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(to bottom, #f0f8fa 0%, #e8f4f8 100%);
}

main {
    min-height: calc(100vh - 200px);
}

h1, h2, h3, h4, h5, h6 {
    color: #2c5f6f;
    margin: 0 0 1rem 0;
}

p {
    line-height: 1.6;
    color: #4a6b75;
}

/* Contenedor principal - Limita el ancho y centra el contenido */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Estilos del header - Barra de navegación fija */
header {
    background: linear-gradient(135deg, #5a8a9a 0%, #6b9b8f 100%);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

header nav a {
    color: #e8f4f8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

header nav a:hover,
header nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Estilos de la sección Hero */
.hero {
    background: linear-gradient(135deg, #a8d5e2 0%, #c8e8d4 100%);
    padding: 6rem 0;
    text-align: center;
    border-radius: 0 0 50px 50px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #1a3a45;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #2c5f6f;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero .description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #4a6b75;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #7fb8c4 0%, #9ec9b8 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Estilos de la sección de características */
.features {
    padding: 5rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a3a45;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(168, 213, 226, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(168, 213, 226, 0.5);
}

/* Contenedor de iconos en las cards */
.icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon img {
    width: 64px;
    height: 64px;
    transition: transform 0.3s ease;
}

.feature-card:hover .icon img {
    transform: scale(1.1);
}

.feature-card h3 {
    color: #2c5f6f;
    margin-bottom: 1rem;
}

/* Estilos de la sección de sectores */
.sectors {
    background: linear-gradient(135deg, #daf0f5 0%, #e3f5eb 100%);
    padding: 5rem 0;
    border-radius: 50px;
    margin: 2rem 0;
}

.sectors h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a3a45;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.sector-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c5f6f;
    box-shadow: 0 2px 10px rgba(168, 213, 226, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sector-item img {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.sector-item:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #a8d5e2 0%, #c8e8d4 100%);
}

.sector-item:hover span {
    color: white;
}

.sector-item:hover img {
    transform: scale(1.15);
    filter: brightness(0) invert(1);
}

/* Estilos de la sección de llamada a la acción */
.cta-section {
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a3a45;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #4a6b75;
}

.cta-button-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: #2c5f6f;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 213, 226, 0.4);
    border: 2px solid #a8d5e2;
}

.cta-button-secondary:hover {
    background: linear-gradient(135deg, #a8d5e2 0%, #c8e8d4 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(168, 213, 226, 0.6);
}

/* Estilos del footer */
footer {
    background: linear-gradient(135deg, #7fb8c4 0%, #9ec9b8 100%);
    color: #2c5f6f;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

footer .footer-section h3 {
    color: #1a3a45;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

footer .footer-section p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

footer .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(44, 95, 111, 0.3);
}

footer .footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* ESTILOS DE PRODUCTOS */

.products-hero {
    background: linear-gradient(135deg, #a8d5e2 0%, #c8e8d4 100%);
    padding: 4rem 0;
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 4rem;
}

.products-hero h1 {
    font-size: 3rem;
    color: #1a3a45;
    margin-bottom: 1rem;
}

.products-hero p {
    font-size: 1.3rem;
    color: #2c5f6f;
}

.products-content {
    padding: 2rem 0;
}

.categoria-section {
    margin-bottom: 4rem;
}

.categoria-section h2 {
    font-size: 2.2rem;
    color: #1a3a45;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #a8d5e2;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Estilos de las cards de producto */
.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(168, 213, 226, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(168, 213, 226, 0.5);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #daf0f5 0%, #e3f5eb 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    color: #2c5f6f;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.product-content p {
    color: #4a6b75;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-link {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #a8d5e2 0%, #b8e2d8 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.product-link:hover {
    background: linear-gradient(135deg, #7fb8c4 0%, #9ec9b8 100%);
    transform: scale(1.05);
}

.products-cta {
    background: linear-gradient(135deg, #daf0f5 0%, #e3f5eb 100%);
    padding: 4rem 0;
    text-align: center;
    border-radius: 50px;
    margin: 4rem 0;
}

.products-cta h2 {
    font-size: 2.5rem;
    color: #1a3a45;
    margin-bottom: 1rem;
}

.products-cta p {
    font-size: 1.2rem;
    color: #4a6b75;
    margin-bottom: 2rem;
}

/* ESTILOS DE CONTACTO */

.contact-hero {
    background: linear-gradient(135deg, #a8d5e2 0%, #c8e8d4 100%);
    padding: 4rem 0;
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 4rem;
}

.contact-hero h1 {
    font-size: 3rem;
    color: #1a3a45;
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: 1.3rem;
    color: #2c5f6f;
}

.contact-content {
    padding: 2rem 0 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 2rem;
    color: #1a3a45;
    margin-bottom: 2rem;
}

/* Estilos del formulario de contacto */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(168, 213, 226, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c5f6f;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #a8d5e2;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #f8fcfd;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7fb8c4;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(168, 213, 226, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #7fb8c4 0%, #9ec9b8 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Card compacta con toda la información de contacto */
.info-card-compact {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(168, 213, 226, 0.3);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(168, 213, 226, 0.2);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.info-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.info-item:hover .info-icon img {
    transform: scale(1.1);
}

.info-text {
    flex: 1;
}

.info-text h3 {
    color: #2c5f6f;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

.info-text p {
    color: #4a6b75;
    margin: 0.2rem 0;
    font-size: 0.95rem;
}

/* Estilos de la sección del mapa */
.map-section {
    padding: 4rem 0;
    margin-top: 2rem;
}

.map-section h2 {
    font-size: 2.5rem;
    color: #1a3a45;
    text-align: center;
    margin-bottom: 2rem;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(168, 213, 226, 0.4);
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* Media Queries - Responsive Design para tablets y móviles */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    header nav ul {
        gap: 1rem;
    }

    .hero {
        padding: 3rem 0;
        border-radius: 0 0 30px 30px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero .description {
        font-size: 1rem;
    }

    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Productos - Tablets */
    .products-hero {
        padding: 3rem 0;
        border-radius: 0 0 30px 30px;
    }

    .products-hero h1 {
        font-size: 2rem;
    }

    .products-hero p {
        font-size: 1.1rem;
    }

    .categoria-section h2 {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-image {
        height: 180px;
    }

    .product-content {
        padding: 1.25rem;
    }

    .product-content h3 {
        font-size: 1.2rem;
    }

    .products-cta {
        padding: 3rem 1rem;
        margin: 2rem 0;
        border-radius: 30px;
    }

    .products-cta h2 {
        font-size: 1.8rem;
    }

    .products-cta p {
        font-size: 1rem;
    }

    /* Contacto - Tablets */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
        padding-bottom: 1.25rem;
    }

    .contact-hero {
        padding: 3rem 0;
        border-radius: 0 0 30px 30px;
    }

    .contact-hero h1 {
        font-size: 1.8rem;
    }

    .contact-hero p {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 1.6rem;
    }

    .info-card-compact {
        padding: 1.5rem;
    }

    .map-section {
        padding: 3rem 0;
    }

    .map-section h2 {
        font-size: 2rem;
    }

    .map-container {
        border-radius: 15px;
    }

    .map-container iframe {
        height: 350px;
    }
}

/* Media Queries - Responsive para móviles pequeños */
@media (max-width: 480px) {
    .products-hero h1 {
        font-size: 1.75rem;
    }

    .categoria-section h2 {
        font-size: 1.5rem;
    }

    .product-content h3 {
        font-size: 1.1rem;
    }

    .product-content p {
        font-size: 0.9rem;
    }

    .products-cta h2 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    /* Contacto - Móviles */
    .contact-hero h1 {
        font-size: 1.5rem;
    }

    .contact-hero p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
    }

    .submit-button {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .info-card-compact {
        padding: 1.25rem;
    }

    .info-icon img {
        width: 32px;
        height: 32px;
    }

    .info-text h3 {
        font-size: 1rem;
    }

    .info-text p {
        font-size: 0.85rem;
    }

    .map-section h2 {
        font-size: 1.6rem;
    }

    .map-container iframe {
        height: 300px;
    }
}
