/*
Theme Name: CEPO - Centro Educativo Prado Oriental
Theme URI: https://example.com/cepo-theme
Author: Mixart
Author URI: https://example.com
Description: Tema personalizado para Centro Educativo Prado Oriental - Página de admisiones
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cepo
*/

/* ============================================
   RESET Y VARIABLES
   ============================================ */
:root {
    --color-primary: #2ba85a;
    --color-primary-dark: #114223;
    --color-secondary: #f9c623;
    --color-tertiary: #a1bae2;
    --color-accent: #a0d5c6;
    --color-text-dark: #0a2514;
    --color-text-medium: #071f10;
    --color-text-light: #59665e;
    --color-border: #9e9e9e;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Raleway', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    overflow-x: hidden;
    background: #fcfff6;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   SECCIÓN HERO
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(90deg, #fcfff6 0%, #ffffff 100%);
    overflow: hidden;
    padding: 40px 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.2;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

/* Decoraciones */
.decoration {
    position: absolute;
    z-index: 1;
}

.decoration.pencil-top-right {
    top: -30px;
    right: 10vw;
    width: 180px;
    transform: rotate(0deg);
}

.decoration.photo-top-right {
    top: 227px;
    right: 10vw;
    width: 210px;
    height: 125px;
    border-radius: 10px;
/*     box-shadow: 0px 4px 20px 4px rgba(43, 168, 90, 0.29); */
}

.decoration.photo-left {
    top: 274px;
    left: 10vw;
    width: 210px;
    height: 125px;
    border-radius: 10px;
    transform: rotate(-7deg);
/*     box-shadow: 0px 4px 20px 4px rgba(43, 168, 90, 0.29); */
}

.decoration.photo-bottom-right {
    bottom: 170px;
    right: 10vw;
    width: 210px;
    height: 125px;
    border-radius: 10px;
    transform: rotate(7deg);
/*     box-shadow: 0px 4px 20px 4px rgba(43, 168, 90, 0.29); */
}

.decoration.smile {
    top: 419px;
    right: 100px;
    width: 167px;
    height: 186px;
}

.decoration.star-left-top {
    top: -43px;
    left: 12px;
    width: 170px;
    transform: rotate(-22deg);
}

.decoration.draw-left-top {
    top: -43px;
    left: 10vw;
    width: 170px;
    transform: rotate(0deg);
}

.decoration.star-left-bottom {
    bottom: 250px;
    left: 100px;
    width: 200px;
}

/* Logo y Header */
.site-header {
    text-align: center;
    margin-bottom: 20px;
}

.site-logo {
    width: 121px;
    height: 130px;
    margin: 0 auto 20px;
}

.site-title {
    font-size: 18px;
    letter-spacing: 3.6px;
    font-weight: 400;
    color: var(--color-text-dark);
    margin-bottom: 5px;
}

.site-subtitle {
    font-size: 24px;
    letter-spacing: 2.88px;
    font-weight: 700;
    color: #1a7c3f;
}

/* Contenido Hero */
.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero-title-top {
    font-size: 34px;
    font-weight: 700;
    color: #26924d;
    text-transform: uppercase;
/*     margin-bottom: 10px; */
}

.hero-title-main {
    font-size: 50px;
    font-weight: 900;
    color: var(--color-accent);
    text-transform: uppercase;
/*     margin-bottom: 30px; */
}

.hero-divider {
    width: 423.5px;
    height: 3px;
    background: #B2CB5D;
    margin: 20px auto;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #2aa657;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.hero-year {
    font-size: 34px;
    font-weight: 900;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Niveles Educativos */
.education-levels {
    display: flex;
    gap: 10px;
    max-width: 424px;
    margin: 0 auto;
    flex-direction: column;
}

.level-button {
    width: 100%;
    padding: 10px;
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-bottom: 0;
}

.level-button:hover {
    opacity: 0.9;
}

.level-button.inicial {
    background: var(--color-primary);
}

.level-button.primaria {
    background: var(--color-secondary);
}

.level-button.secundaria {
    background: var(--color-tertiary);
}

/* Botón de Scroll */
.scroll-down {
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px;
    background: none;
    border: none;
	margin-left: 40px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.cta-text {
    font-size: 18px;
    color: var(--color-text-medium);
    margin-top: 40px;
    line-height: 1.4;
}

.cta-text strong {
    font-weight: 700;
}

/* ============================================
   SECCIÓN FORMULARIO
   ============================================ */
.footer-block {
	background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}
.form-section {
    padding: 80px 20px 30px;
    position: relative;
}

.form-section .decoration.smile-bottom-left {
    top: 200px;
    left: 10vw;
    width: 120px;
	-webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

.form-section .decoration.star-bottom-left {
    bottom: 150px;
    left: -46px;
    width: 200px;
    transform: rotate(8deg);
}

.form-section .decoration.draw-bottom-left {
    bottom: 0px;
    left: 1vw;
    width: 200px;
    transform: rotate(25deg);
}

.form-section .decoration.star-bottom-right {
    top: 200px;
    right: 10vw;
    width: 140px;
    transform: rotate(-12deg);
}

.form-section .decoration.pencil-bottom-right {
    bottom: 100px;
    right: 5vw;
    width: 180px;
    transform: rotate(0deg);
}

.form-container {
	position: relative;
	z-index: 10;
    background: white;
    max-width: 750px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.form-actions {
	position: relative;
	z-index: 10;
    max-width: 750px;
    margin: 0 auto;
    padding: 10px 0px;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: #202020;
    margin-bottom: 8px;
    text-transform: capitalize;
    font-family: var(--font-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.student-section {
    border-top: 2px solid #f0f0f0;
    padding-top: 30px;
    margin-top: 30px;
}

.student-section:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.student-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

/* Sección del Padre/Tutor */
.parent-section {
    margin-bottom: 30px;
}

.section-header {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

/* Divisor entre secciones */
.form-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
    margin: 40px 0;
}

.add-student {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: 12px;
    transition: opacity 0.3s;
    margin: 20px auto;
}

.add-student:hover {
    opacity: 0.7;
}

.add-student-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.submit-button {
    width: 100%;
    background: white;
    color: var(--color-primary);
    border: none;
    padding: 15px 50px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.submit-button:hover {
    background: #F8C523;
    color: black;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
/*     background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-primary-dark) 100%); */
    padding: 40px 20px 30px;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    width: 84px;
    height: 90px;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}

.footer-info {
    display: flex;
    width: 100%;
	max-width: 1200px;
    justify-content: space-between;
	margin: 0px auto;
}

.footer-copyright {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-copyright strong {
    font-weight: 700;
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.footer-social a {
    color: white;
    font-size: 24px;
    transition: opacity 0.3s;
}

.footer-social a:hover {
    opacity: 0.7;
}

.footer-credits {
    text-align: center;
}

.footer-credits img {
    width: 60px;
    opacity: 0.8;
}

/* ============================================
   MENSAJES DE FORMULARIO
   ============================================ */
.admission-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    animation: slideDown 0.5s ease;
}

.admission-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.admission-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        top: -100px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

/* Error states para campos del formulario */
.form-group input.error,
.form-group select.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group input.error:focus,
.form-group select.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Animaciones para secciones */
.student-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Loading state para el botón de envío */
.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-button.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Botón de eliminar estudiante */
.remove-student {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-primary);
    transition: background 0.3s;
}

.remove-student:hover {
    background: #c82333;
}

/* Select personalizado */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230b2e18' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ============================================
   GOOGLE reCAPTCHA
   ============================================ */
.grecaptcha-badge {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Opcional: Mover el badge a una posición personalizada */
@media (max-width: 768px) {
    .grecaptcha-badge {
        bottom: 70px !important;
    }
}

/* Mensaje de privacidad de reCAPTCHA */
.recaptcha-notice {
    font-size: 12px;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 15px;
}

.recaptcha-notice a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title-top {
        font-size: 24px;
    }
    
    .hero-title-main {
        font-size: 36px;
    }
    
    .hero-year {
        font-size: 28px;
    }
    
    .hero-divider {
        width: 80%;
    }
    
    .education-levels {
        max-width: 100%;
    }
    
    .level-button {
        font-size: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .decoration {
        display: none;
    }
    
    .site-logo {
        width: 90px;
        height: 100px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title-top {
        font-size: 20px;
    }
    
    .hero-title-main {
        font-size: 28px;
    }
    
    .hero-year {
        font-size: 24px;
    }
    
    .level-button {
        font-size: 18px;
        padding: 12px;
    }
    
    .site-title {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .site-subtitle {
        font-size: 18px;
    }
}
